﻿*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/*顶部导航区域*/
body,header{
    min-width: 320px;
}
input:focus{
    outline: none;
}
header a{
    color: #333;
    font-size: 20px;
}
*{
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
#myNav{
    border-bottom: 2px solid #D0D3CA;
    margin: 0;
    border-top: none;
}
#myNav .navbar-header button span{
    background-color: #333;
}
#myNav .navbar-nav li a{
    padding: 27px 15px;
}
#myNav .navbar-header > a{
    display: block;
    padding: 11px 0;
}
/*注册栏 未登录状态*/
#register-box{
    line-height: 66px;
}
#register-box #login{
    margin-left: 10px;
    margin-right: 10px;
}
#register-box .login-box.active{
    display: none;
}
/* 已登录状态 */
#register-box .homepage{
    position: relative;
    width: 200px;
    display: none;
}
/* 登录后显示 */
#register-box .homepage.active{
    display: block;
}
#register-box .homepage div{
    margin: 0 15px;
}
#register-box .homepage div .figure{
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    margin: 1px;
}
#register-box .homepage div .figure img{
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
#register-box .homepage div .nick{
    line-height: 16px;
    margin-bottom: 0;
    font-weight: bold;
    color: red;
}
#register-box .homepage .exit{
    position: absolute;
    bottom: 0;
    font-size: 14px;
    line-height: 16px;
}
/*搜索框*/
#search-box{
    position: relative;
    line-height: 66px;
    margin-right: 13px;
}
#search-box input{
    border: none;
    width: 0px;
    height: 40px;
    padding: 3px 5px;
}
#search-box button{
    position: absolute;
    top: 35%;
    right: 0;
}
/*导航li点击添加字体颜色*/
#myNav .navbar-nav li.active a{
    color: orange;
}
/*登录框****************/
#myModal .modal-content{
    color: #777;
    border-bottom: 3px solid red;
}
#myModal .modal-header{
    border-bottom: none;
}
#myModal .modal-content .row{
    margin-left: 0px;
    margin-right: 0px;
}
#myModal .modal-body form input{
    margin-bottom: 20px;
}
#myModal .modal-body form .reg{
    margin-top: 15px;
    margin-bottom: 40px;
}
#myModal .modal-body form .reg a{
    color: #777;
}
#myModal .modal-body form .reg a:hover{
    color: orangered;
}
#myModal .modal-body form .modal-login .btn{
    padding: 8px 50px;
    border-radius: 18px;
}


/*媒体查询*******************************************/
@media (max-width: 992px) and (min-width: 768px) {
    #search-img{
        visibility: hidden;
    }
}
@media (max-width: 768px) {
    .navbar-header a{
        float: left;
        margin-left:15px;
    }
    .container{
        position: relative;
    }
    #register-box{
        position: absolute;
        top: -5px;
        right: 10%;
    }
    #search-box{
        position: absolute;
        top: -5px;
        right: 19%;
    }
}
@media (max-width: 500px) {
    #search-img{
        visibility: hidden;
    }
    #register-box{
        position: absolute;
        top: -5px;
        left: 40%;
    }
}